package org.example.config;

import org.example.interceptors.MyInterceptor;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @Author: Tobias
 * @Date: 16/01/2024 - 01 - 16 - 9:12 pm
 * @Description: com.example.config
 * @Version: 1.0
 */
@Configuration
public class MyWebConfig implements WebMvcConfigurer {
    @Override
    public void addInterceptors(InterceptorRegistry registry) {
        registry.addInterceptor(new MyInterceptor()).excludePathPatterns("/account",
                "/css/**", "/js/**", "/images/**");
    }
}
